package com.fpc.cn.springbootutil.exception;

public enum ExceptionTypeEnum {
    BAD_REQUEST(400, "参数异常"),
    TOKEN_NO_EXIST(401, "参数异常"),
    TOKEN_OVERDUE(401, "Token已过期");

    private Integer code;
    private String msg;

    private ExceptionTypeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
